//
//  UIColor+Extension.swift
//  表情键盘
//
//  Created by newuser on 15/12/28.
//  Copyright © 2015年 newuser. All rights reserved.
//

import UIKit

extension UIColor {

    class func randomColor() -> UIColor {
      return UIColor(red: randomValue(), green: randomValue(), blue: randomValue(), alpha: 1)
    }
    
    /// 返回一个0 - 1 之间的随机值
    private class func randomValue() -> CGFloat {
        return CGFloat(arc4random_uniform(256)) / 255.0
    }
}
